home *** CD-ROM | disk | FTP | other *** search
- on Seg1
- global LbalanceHList, LbalanceVList, RbalanceHList, RbalanceVList, onScaleList, activeSprite, LcurrentWeight, RcurrentWeight, offRight, tempObject
- setAt(onScaleList, activeSprite - 13, 1)
- set tempWeight to integer(the name of cast the castNum of sprite activeSprite)
- if offRight then
- set RcurrentWeight to RcurrentWeight - tempWeight
- set the castNum of sprite 12 to the number of cast string(RcurrentWeight)
- else
- set LcurrentWeight to LcurrentWeight + tempWeight
- set the castNum of sprite 11 to the number of cast string(LcurrentWeight)
- end if
- set tempR to RcurrentWeight - LcurrentWeight + 5
- if tempR < 1 then
- set tempR to 1
- end if
- if tempR > 9 then
- set tempR to 9
- end if
- set holdOld to the castNum of sprite 6
- set the castNum of sprite 6 to the number of cast "place holder" + tempR
- set the locH of sprite 11 to getAt(LbalanceHList, tempR)
- set the locV of sprite 11 to getAt(LbalanceVList, tempR)
- set the locH of sprite 12 to getAt(RbalanceHList, tempR)
- set the locV of sprite 12 to getAt(RbalanceVList, tempR)
- set holdOld to the castNum of sprite 6 - holdOld
- set holdOld to abs(holdOld)
- repeat with T = 14 to 17
- repeat with r = 1 to holdOld
- if getAt(onScaleList, T - 13) = 1 then
- if the locH of sprite T > 172 then
- set the locV of sprite T to the locV of sprite T - 6
- next repeat
- end if
- set the locV of sprite T to the locV of sprite T + 6
- end if
- end repeat
- end repeat
- end
-
- on Seg2
- global LbalanceHList, LbalanceVList, RbalanceHList, RbalanceVList, onScaleList, activeSprite, LcurrentWeight, RcurrentWeight, offLeft, tempObject
- setAt(onScaleList, activeSprite - 13, 1)
- set tempWeight to integer(the name of cast the castNum of sprite activeSprite)
- if offLeft then
- set LcurrentWeight to LcurrentWeight - tempWeight
- set the castNum of sprite 11 to the number of cast string(LcurrentWeight)
- else
- set RcurrentWeight to RcurrentWeight + tempWeight
- set the castNum of sprite 12 to the number of cast string(RcurrentWeight)
- end if
- set tempR to RcurrentWeight - LcurrentWeight + 5
- if tempR > 9 then
- set tempR to 9
- end if
- if tempR < 1 then
- set tempR to 1
- end if
- set holdOld to the castNum of sprite 6
- set the castNum of sprite 6 to the number of cast "place holder" + tempR
- set the locH of sprite 11 to getAt(LbalanceHList, tempR)
- set the locV of sprite 11 to getAt(LbalanceVList, tempR)
- set the locH of sprite 12 to getAt(RbalanceHList, tempR)
- set the locV of sprite 12 to getAt(RbalanceVList, tempR)
- set holdOld to the castNum of sprite 6 - holdOld
- repeat with T = 14 to 17
- repeat with r = 1 to holdOld
- if getAt(onScaleList, T - 13) = 1 then
- if the locH of sprite T < 172 then
- set the locV of sprite T to the locV of sprite T - 6
- next repeat
- end if
- set the locV of sprite T to the locV of sprite T + 6
- end if
- end repeat
- end repeat
- end
-